#!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'wshu'
__version__ = '1.0'
"""
    ***********************************
    *  @filename : items.py
    *  @Author : wshu
    *  @CodeDate : 2020/3/26 11:05
    *  @Software : PyCharm
    ***********************************
"""

import scrapy


class HfbotV1Item(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass


class Hflink(scrapy.Item):
    """链接"""
    link = scrapy.Field()   # 文本url
    body = scrapy.Field()   # 正文内容
    html = scrapy.Field()   # html源码
    task_id = scrapy.Field()    # 任务id
    site_id = scrapy.Field()    # 网站id

class Hfimg(scrapy.Item):
    """图片"""
    link = scrapy.Field()       # 图片url
    images = scrapy.Field()     # 图片
    image_path = scrapy.Field   # 图片路径
    task_id = scrapy.Field()    # 任务id
    site_id = scrapy.Field()    # 网站id

class Hfbad(scrapy.Field):
    """坏链"""
    link = scrapy.Field()       # 坏链url
    state = scrapy.Field()      # 网站状态码
    task_id = scrapy.Field()    # 任务id
    site_id = scrapy.Field()    # 网站id